package com.hk.housekeeping.order.utils;

import java.sql.PreparedStatement;
import java.sql.SQLException;

//预编译对象的赋值工具类
public class PrepareStatementUtils {
    public static void SetValueToSQL(PreparedStatement pStmt, Object...objArr) throws SQLException {
        for (int i = 1; i <= objArr.length; i++) {
            pStmt.setObject(i, objArr[i-1]);
        }
    }
}
